package com.fxp.project.jiuselu.web.models.tax.controller;

import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.tax.domain.JslTax;
import com.fxp.project.jiuselu.web.models.tax.service.IJslTaxService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

@Log4j2
@RestController
@RequestMapping("/v1/order")
public class JslTaxController extends BaseController {

    @Autowired
    private IJslTaxService jslTaxService;

    @GetMapping("ordertaxe")
    public CommonResult getJslTax(){
        BigDecimal jslTax = jslTaxService.getJslTax();
        return CommonResult.success(jslTax);
    }

}
